import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/protocol/getList',
    method: 'post',
    data
  })
}


export function getInfo(data) {
  return request({
    url: '/protocol/getInfo',
    method: 'post',
    data
  })
}

export function buyProtocol(data) {
  return request({
    url: '/protocol/buyProtocol',
    method: 'post',
    data
  })
}


export function getAvailableCountry(data) {
  return request({
    url: '/protocol/getAvailableCountry',
    method: 'post',
    data
  })
}

export function getRemaining(data) {
  return request({
    url: '/protocol/getRemaining',
    method: 'post',
    data
  })
}

export function surplusInfo(data) {
  return request({
    url: '/protocol/surplusInfo',
    method: 'post',
    data
  })
}

export function resetTimeout(data) {
  return request({
    url: '/protocol/resetTimeout',
    method: 'post',
    data
  })
}
export function reStart(data) {
  return request({
    url: '/protocol/reStart',
    method: 'post',
    data
  })
}
